# coding=utf-8
# @Author: back
# @Time: 2024/10/14 11:31
import sys
from function.UI_Function import *
from ui.mainwin_ui import *
from PySide6.QtCore import Qt


class MainWin(QMainWindow):
    def __init__(self):
        super().__init__()
        self.ui = UiMainWindow()
        self.ui.setup_ui(self)
        self.func = UiFunction()
        # self.show()
        self.ui.toggleMenu(self.ui.leftmenu)
        self.ui.init_slot()
        # self.init_slot()

    # def init_slot(self):
    #     # 开始绑定信号和槽
    #     self.ui.menu_button.clicked.connect(self.func.toggleMenu(self.func))


if __name__ == '__main__':
    app = QApplication(sys.argv)
    window = MainWin()
    window.show()
    sys.exit(app.exec())
